package org.kl.bf.entity.easyui;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 用户后台向前台返回的JSON对象
 * 
 * @Author hqm
 * @CreateTime 2014-3-22 上午2:16:47
 */
public class Json implements java.io.Serializable {

	private static final long serialVersionUID = 6833388949857585892L;

	private boolean success = false;

	private String msg = "";

	private Object obj = null;

	public Json() {
	}

	public Json(String msg) {
		this.msg = msg;
	}

	public Json(String msg, boolean success) {
		this.msg = msg;
		this.success = success;
	}

	public Json(String msg, boolean success, Object obj) {
		this.msg = msg;
		this.success = success;
		this.obj = obj;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@JsonInclude(Include.NON_NULL)
	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

}
